package oo1;

public class PhoneTest {

	public static void main(String[] args) {
		MobilePhone m = new MobilePhone();
		m.brand = "华为mate30 pro";
		m.color = "黑色";
		m.money = 7399;
		m.weight = 120;
		m.screenSize = "8千万像素";
		Battery b = new Battery();
		b.factory = "原装";
		b.color = "黑";
		b.vol = 10000;
		// !!!
		m.b = b;// 组装电池
		// !!!

		m.show();
	}

}
